#ifndef _MPLAYER_H
#define _MPLAYER_H

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <linux/input.h>
#include <dirent.h>
#include <sys/mman.h>

// 颜色宏定义
#define RESET  "\033[0m"
#define BOLD   "\033[1m"
#define RED    "\033[31m"
#define GREEN  "\033[32m"
#define YELLOW "\033[33m"
#define BLUE   "\033[34m"
#define CYAN   "\033[36m"
#define WHITE  "\033[37m"

struct music
{
	char music_name[100];
	char music_path[4096];
	struct music *next;
	struct music *prev;
};

struct music *music_init();
void music_install(struct music *head,char music_name[100],char music_path[4096]);
void music_show(struct music *head);
void broke_music(struct music *head);
int music_add(struct music *head,char music_path[4096]);
void music_start(struct music *head);
void music_stop();
void music_continue();
void music_next();
void music_prev(struct music *head);
void music_over(struct music *head);

#endif